<?php 
class WebModule extends CWebModule
{
	public function init()
	{
		// Change applicaiton components to the ones defined in module
        // need to add false flag so it will return all components otherwise it would only return the loaded components
        Yii::app()->setComponents($this->getComponents(false));
	}
} ?>